package com.geostar.constructionland.attachment.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author : yell
 * @Description:
 * @date : 2021/01/14 16:24
 */
@Component
@ApiModel("百度上传组件配置")
@Data
public class WebUploaderOption {
    @Value("${chunkedHoldSize:52428800}")
    @ApiModelProperty("文件分片阈值")
    private int chunkedHoldSize;

    @Value("${chunkedSize:10485760}")
    @ApiModelProperty("文件分片大小")
    private int chunkedSize;

    @Value("${chunkedThreadNum:3}")
    @ApiModelProperty("上传线程数")
    private int chunkedThreadNum;
}
